package com.jjb.www.http.model;

/**
 * @author CRG
 * @date :2023/12/21 15:47
 * @description:
 */
public class CommJsonModel {

    private Integer code;
    private String data;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    /**
     * 是否请求成功
     */
    public boolean isRequestSucceed() {
//        if (respCode.equals("0000")||respCode.equals("0003")){
//            return true;
//        }else {
//            return false;
//        }
        return code==1;
    }
}
